home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / vector.hlp < prev    next >
Text File  |  1994-05-30  |  1KB  |  55 lines

  1. @COLOR 1 15
  2. Language SLANG
  3.  
  4. Operators:
  5.  
  6. FOR <cycle variable> TO <upper limit>
  7. ............
  8. NEXT
  9.  
  10. Step is 1. Nested cycles are legal.
  11.  
  12. GOTO <label>
  13. Pass control to the line
  14. !<label name>
  15. Example:
  16. GOTO l
  17. ......
  18. !l
  19. ......
  20.  
  21. IF <condition> THEN <action>
  22. If succes, pass control to "action", else
  23. to the nest line
  24. Example:
  25. IF a > 3 THEN GOTO label1
  26. GOTO label2
  27.  
  28.  
  29. Subroutines.
  30.     Begin with alpha. Terminated with RETURN.
  31. Main program terminated with END. Could get
  32. list of arguments and return a value.
  33. Example:
  34. MIN(x, y)
  35.     IF x < y THEN y = x
  36.     x = y
  37. RETURN x
  38.  
  39. PLAY("<file name>") pass control to the external
  40. file. Return control back after END statement.
  41.  
  42. OOPic operators.
  43.  
  44. LINE(x1, y1, x2, y2) draws a line.
  45. LINETO(x2, y2) draws a line from current position
  46. to the given point.
  47. ELLIPSE(x1, y1, startangle, endangle, xradius, yradius)
  48.     draws an ellipse or sector.
  49. RECTANGLE(x1, y1, x2, y2) draws rectangle.
  50. POLY(i, x1, y1... xi, yi) draws polygon.
  51. MOVETO(x, y) moves current position to the point.
  52. ZOOM(scalex,scaley) zoom all the following output.
  53. ROTATE(alpha, x, y) rotate all output exept ellipses.
  54.  
  55.